<template>
  <div id="root">
    <base-info-edit :employee="employee" @submit="success"/>
  </div>
</template>

<script>
import BaseInfoEdit from "../../components/notes/BaseInfoEdit.vue";
export default {
  components: {
    BaseInfoEdit,
  },
  data: () => ({
    employee: {
      name: "",
      sex: true,
      birthday: "1997-1-1 00:00:00",
      politicStatus: "",
      email: "",
      salary: "",
      address: "",
      status: "",
      phone: "",
      avatarUrl: "https://chaohaopin.oss-cn-hangzhou.aliyuncs.com/37769f4a1b794bc5a3739db5a3f93da9.png",
      fillStatus: 1
    },
  }),
  methods: {
    success() {
      setTimeout(() => {
        this.$router.push("/employee/recomment");
      }, 2000);
    }
  },
  created() {
    localStorage.setItem("avatarUrl", "https://chaohaopin.oss-cn-hangzhou.aliyuncs.com/37769f4a1b794bc5a3739db5a3f93da9.png")
  }
};
</script>

<style scoped>
#root {
  width: 1000px;
  margin: 50px auto;
}
</style>